<template>
  <div class="mySearch">
    <el-row>
      <el-col :span="3">
        <el-input v-model="value1" placeholder="请输入关键字"></el-input>
      </el-col>
      <el-col :span="6">
         <el-date-picker
          v-model="value2"
          type="datetimerange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期">
        </el-date-picker>
      </el-col>
      <el-col :span="2">
         <el-select v-model="value3" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
      </el-col>
      <el-col>
        <el-button type="primary" icon="el-icon-search">搜索</el-button>
        <el-button type="primary" icon="el-icon-share">重置</el-button>
        <el-button type="primary" icon="el-icon-plus">添加</el-button>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'MySearch',
  data () {
    return {
      value1: '',
      value2: '',
      options: [{
        value: '选项1',
        label: '黄金糕'
      }, {
        value: '选项2',
        label: '双皮奶'
      }],
      value3: ''
    }
  }
}
</script>
<style>
.mySearch{
  width: 100%;
}
</style>
